package com.lottery.material.entity.circle;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Description：圈子信息表
 * Created by 朱正磊 on 2019-04-09 10:19
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_circle_info")
public class CircleInfo extends BaseEntity {

    private static final long serialVersionUID = 820111378704083349L;

    @Column(columnDefinition = "varchar(20) comment '圈子名称'")
    private String circleName;

    @Column(columnDefinition = "varchar(100) comment '头像url'")
    private String circleIcon;

    @Column(columnDefinition = "varchar(100) comment '背景图url'")
    private String backgroundImageUrl;

    @Column(columnDefinition = "varchar(50) comment '简介'")
    private String circleBrief;

    @Column(columnDefinition = "int(10) comment '文章数'")
    private Integer articleTotal;

    @Column(columnDefinition = "int(10) comment '粉丝数'")
    private Integer fansTotal;

    @Column(columnDefinition = "varchar(10) comment '所属主类型级别编号（material_circle_class_config表class_code）'")
    private String mainTypeCode;

    @Column(columnDefinition = "varchar(10) comment '所属主类型级别编号（material_circle_class_config表class_code）'")
    private String subTypeCode;

    @Column(columnDefinition = "int(1) default '1' comment '是否标记为热门圈子（1：否；2：是）'")
    private Integer isHotCircle;

    @Column(columnDefinition = "int(1) default '2' comment '状态 1：上架；2：下架'")
    private Integer state;

    @Column(columnDefinition = "int(10) comment '发贴间隔（秒）'")
    private Integer sendInterval;

    @Column(columnDefinition = "int(10) comment '发贴文章数（针对预备成员，每位预备成员用户每日发贴限隔数）'")
    private Integer sendArticleTotal;

    @Column(columnDefinition = "int(1) default '1' comment '是否禁止发贴（1：否；2：是）'")
    private Integer isProhibitionPublish;

    @Column(columnDefinition = "int(1) default '1' comment '是否禁止评论（1：否；2：是）'")
    private Integer isProhibitionComment;

}
